package com.itcat.api.mysql;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itcat.mysql.pojo.UmsAdmin;
import com.itcat.mysql.pojo.UmsRole;

import java.util.List;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Cr Mr]
 * @version : [v1.0]
 * @date : [2022/3/31 17:15]
 */
public interface UmsAdminApi {

    UmsAdmin selectByName(String username);

    UmsAdmin selectLogin(String username);

    Page<UmsAdmin> selectPage(String username, Integer pageNum, Integer pageSize);

    void delete(Long id);

    void insertReoles(Long adminId, Long[] roleIds);

    void update(UmsAdmin admin);

    void updatePassword(String username, String password);

    UmsAdmin selectById(Long userId);

    void updateStatus(Long id, Integer status);

    void saveLoginTime(Long id);

    void insert(UmsAdmin umsAdmin);
}
